package cn.edu.cdu.health.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
//建立实体类和数据表tb_user之间的映射关系
@Data
@TableName("tb_user")
public class User implements Serializable {
    @TableId(value = "user_id",type = IdType.AUTO)
    private Integer id;

    @TableField("user_name")
    private String name;
    @TableField("user_phone")
    private String phone;
    @TableField("user_email")
    private String email;
    @TableField("user_password")
    private String password;
    @TableField("user_role")
    private String role;
    @TableField("user_status")
    private Integer status;

    private LocalDateTime created;
    private LocalDateTime updated;
}
